package com.ruoyi.project.wms.essentials.purchase.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;
import java.util.Objects;

/**
 * 进货订单对象 wms_purchase
 * 
 * @author ruoyi
 * @date 2020-10-29
 */
public class WmsPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增*/
    private Integer purId;

    /** $column.columnComment */
    @Excel(name = "入库的id", readConverterExp = "$column.readConverterExp()")
    private Integer purStoId;

    /** $column.columnComment */
    @Excel(name = "商品总价", readConverterExp = "$column.readConverterExp()")
    private Long purMoney;

    /** $column.columnComment */
    @Excel(name = "提交时间", width = 30,dateFormat ="yyyy-MM-dd" )
    private Date purSubmittime;

    /** $column.columnComment */
    @Excel(name = "状态", readConverterExp = "$column.readConverterExp()")
    private String purStatus;

    public WmsPurchase() {
    }

    public void setPurId(Integer purId)
    {
        this.purId = purId;
    }

    public Integer getPurId() 
    {
        return purId;
    }
    public void setPurStoId(Integer purStoId) 
    {
        this.purStoId = purStoId;
    }

    public Integer getPurStoId() 
    {
        return purStoId;
    }
    public void setPurMoney(Long purMoney) 
    {
        this.purMoney = purMoney;
    }

    public Long getPurMoney() 
    {
        return purMoney;
    }
    public void setPurSubmittime(Date purSubmittime) 
    {
        this.purSubmittime = purSubmittime;
    }

    public Date getPurSubmittime() 
    {
        return purSubmittime;
    }
    public void setPurStatus(String purStatus) 
    {
        this.purStatus = purStatus;
    }

    public String getPurStatus() 
    {
        return purStatus;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purId", getPurId())
            .append("purStoId", getPurStoId())
            .append("purMoney", getPurMoney())
            .append("purSubmittime", getPurSubmittime())
            .append("purStatus", getPurStatus())
            .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WmsPurchase that = (WmsPurchase) o;
        return Objects.equals(purId, that.purId) &&
                Objects.equals(purStoId, that.purStoId) &&
                Objects.equals(purMoney, that.purMoney) &&
                Objects.equals(purSubmittime, that.purSubmittime) &&
                Objects.equals(purStatus, that.purStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(purId, purStoId, purMoney, purSubmittime, purStatus);
    }
}
